package de.dhbw.karlsruhe.picsim.model.timer;

import org.jetbrains.annotations.NotNull;

/**
 * Created by IntelliJ IDEA.
 * User: goesen
 * Date: Apr 22, 2010
 * Time: 10:02:37 AM
 */

/**
 * benachrichtet die Listener wenn der Timer via
 *
 * @see #increment() überläuft
 */
public interface ObservableTimer extends Timer {

    void addTimeoutListener(@NotNull TimeoutListener listener);

    void removeTimeoutListener(@NotNull TimeoutListener listener);

    interface TimeoutListener {
        void timeoutOccurred();
    }
}
